package com.hspedu.homework.homework05;

public class Teacher extends Employee{
    private double courseRemuneration;//课酬（元/天）

    public Teacher(double basicSalary, double courseRemuneration) {
        super(basicSalary);
        this.courseRemuneration = courseRemuneration;
    }

    @Override
    public void annualSalary() {
        System.out.println("教师年薪为：" + (getBasicSalary()*12 + 365*courseRemuneration));
    }
}
